#!/bin/bash

LYM_SUM=`md5sum /etc/rc.local|awk '{print $1}'`
RC_SUM=`md5sum /etc/rc.d/rc.local|awk '{print $1}'`

if [ -h /etc/rc.local -a ${LYM_SUM}x == ${RC_SUM}x ]
then
	echo OK
else
	rm -f /etc/rc.local
	ln -s /etc/rc.d/rc.local /etc/rc.local
fi
